<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>版本编辑</title>

<link rel="stylesheet" href="${basePath}/css/plugins/hplus/bootstrap.min14ed.css?v=3.3.6">
<link rel="stylesheet" href="${basePath}/css/plugins/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="${basePath}/css/plugins/bootstrap/fileinput.css">
<link rel="stylesheet" href="${basePath}/css/plugins/hplus/animate.min.css">
<link href="${basePath}/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<link rel="stylesheet" href="${basePath}/css/newAdd.css">

<script src="${basePath}/js/angular-1.4.6/angular.min.js"></script>
<script src="${basePath}/js/angular-1.4.6/angular-animate.min.js"></script>
<script src="${basePath}/js/jquery/jquery.min.js?v=2.1.4"></script>
<script src="${basePath}/js/jquery/jquery.form.js"></script> 
<script src="${basePath}/js/bootstrap-3.3.6/bootstrap.min.js?v=3.3.6"></script> 
<script src="${basePath}/js/bootstrap-3.3.6/fileinput.js"></script>
<script src="${basePath}/js/bootstrap-3.3.6/fileinput_locale_zh.js"></script>
<script src="${basePath}/js/hplus/toastr.min.js"></script>
<script src="${basePath}/js/common/kepdown.js"></script>
	<script type="text/javascript">
    	var basePath = "${basePath}";
    </script>
<script src="${basePath}/system/baseVersion/version_edit.js"></script>
<style>

html {font-size: 62.5%;  /*10 ÷ 16 × 100% = 62.5%*/}
body {font-weight:normal; font-size: 1.4rem; /*1.4 × 10px = 14px */}

.droppable-active {
	background-color: #ffe !important
}

.tools a {
	cursor: pointer;
}

.form-body .col-md-6, .form-body .col-md-12 {
	min-height: 400px
}

.draggable {
	cursor: move
}

input.ng-dirty.ng-invalid {
	border-color: #e9322d;
	-webkit-box-shadow: 0 0 6px #f8b9b7;
	-moz-box-shadow: 0 0 6px #f8b9b7;
	box-shadow: 0 0 6px #f8b9b7;
}

select.ng-dirty.ng-invalid {
	border-color: #e9322d;
	-webkit-box-shadow: 0 0 6px #f8b9b7;
	-moz-box-shadow: 0 0 6px #f8b9b7;
	box-shadow: 0 0 6px #f8b9b7;
}

label.control-label{
        font-weight:normal;
}
body{
 font-size:12px;
        font-weight:normal;
}
.font-green{
	color:#1ab394;
	font-size:14px;
	font-weight:600;
}
.active{
	font-size:14px;
	font-weight:600;
}
</style>
</head>
<body class="gray-bg" ng-app="versionEditApp" ng-controller="versionEditCtr"
	style="overflow-x: hidden">
	<div>
		<div class="row">
			<div class="col-sm-5" style="width: 100%; overflow-x: hidden">
				<div>
					<div>
						<ul class="breadcrumb">
							<li><a href="${basePath}/system/versionApply" class="font-green">版本列表</a></li>
							<li class="active">编辑</li>
						</ul>
					</div>
					<div>
						<form id="versionFormEdit" name="versionFormEdit" action=""
							method="post" role="form" class="form-horizontal m-t">
							<input type="hidden" id="id" name="id" value="${versionId}">
							<div class="form-group col-md-6" id="mc">
								<label class="col-sm-3 control-label">版本名称:</label>
								<div class="col-sm-7">
									<input type="text" 	ng-model="versionName" class="form-control"
										placeholder="" required="">
								</div>
								<div>
								<span><font color="red" title="必填">*</font></span>
									<span style='color: red'
										ng-show="versionFormEdit.versionName.$dirty && versionFormEdit.versionName.$invalid">
										<span ng-show="versionFormEdit.versionName.$error.required">版本名称必填</span>
									</span>
								</div>
							</div>
							
							<div class="form-group col-md-6" style="display:none">
								<label class="col-sm-3 control-label">所属区域:</label>
								<div class="col-sm-7">
									<input type="text" ng-model="districtCode" class="form-control"
										placeholder="" required="">
								</div>
								
							</div>
							<div class="form-group col-md-6" style="display:none">
								<label class="col-sm-3 control-label">所属组织:</label>
								<div class="col-sm-7">
									<input type="text" ng-model="organizeId" class="form-control"
										placeholder="" required="">
								</div>
								
							</div>
							
							<div class="form-group col-md-6">
								<label class="col-sm-3 control-label">所属区域:</label>
								<div class="col-sm-7">
									<input type="text" id="districtName" name="districtName"
										ng-model="districtName" class="form-control"
										placeholder="" required="" readonly="readonly">
								</div>
								
							</div>
							<div class="form-group col-md-6">
								<label class="col-sm-3 control-label">组织:</label>
								<div class="col-sm-7">
									<input type="text" id="organizeName" name="organizeName"
										ng-model="organizeName" class="form-control"
										placeholder="" required="" readonly="readonly">
								</div>
								
							</div>
							
							<div class="form-group col-md-6">
								<label class="col-sm-3 control-label">是否可用:</label>
								<div class="col-sm-7">
									<select class="form-control" style="display:inline-block" ng-model="versionState">
										<option value="">请选择</option>
										<option value="1">可用</option>
										<option value="0">不可用</option>
								</select>
								</div>
							</div>
							<div class="form-group col-md-6">
								<label class="col-sm-3 control-label">版本说明:</label>
								<div class="col-sm-7">
									<input type="text" ng-model="versionDesc" class="form-control"
										placeholder="" required="">
								</div>
							</div>
							
							 <div class="form-group col-md-6" id="lxren">
								<label class="col-sm-3 control-label">权限:</label>
								<div class="col-sm-7">
									 <input type="checkbox" id="type1"  ng-model="type1" ng-true-value="'index_districtIndex'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">首页</font>
						             <input type="checkbox" id="type2"  ng-model="type2" ng-true-value="'trend'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">现状趋势</font>
						             <input type="checkbox" id="type3"  ng-model="type3" ng-true-value="'comparative'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">比较分析</font>
								</div>
							</div>
							<div class="form-group col-md-6" id="lxren">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									 <input type="checkbox" id="type4"  ng-model="type4" ng-true-value="'difference'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">差异分析</font>
						             <input type="checkbox" id="type5"  ng-model="type5" ng-true-value="'thermal'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">热力分析</font>
						             <input type="checkbox" id="type6"  ng-model="type6" ng-true-value="'stock'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">上市公司</font>
								</div>
							</div>
							<div class="form-group col-md-6">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
								</div>
							</div>
							<div class="form-group col-md-6" id="lxren">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									 <input type="checkbox" id="type7"  ng-model="type7" ng-true-value="'export'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">出口贸易</font>
						             <input type="checkbox" id="type8"  ng-model="type8" ng-true-value="'industryReport'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">行业分析报告</font>
						             <input type="checkbox" id="type9"  ng-model="type9" ng-true-value="'directreport'" ng-false-value="0"  class="ng-pristine ng-untouched ng-valid"/>
						               <font color="gray" size="2">直报平台</font>
								</div>
							</div>
							
                            
							<div class="hr-line-dashed"></div>
							<div class="form-group draggable">
								<div class="col-sm-5 col-sm-offset-3">
									<div style="width:100%;text-align:center;">
										<button class="btn btn-primary" type="button"
											ng-click="editVersion()" style="background-color:#1ab394;border-color:#1ab394;">保存</button>
										<button class="btn btn-primary" type="button"
											ng-click="backHis()" style="background-color:#ccc;border-color:#ccc;">取消</button>
										<button class="btn btn-primary" type="reset" style="background-color:#ccc;border-color:#ccc;">重置</button>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
toastr.options = {
		  "closeButton": false,
		  "debug": false,
		  "progressBar": true,
		  "positionClass": "toast-top-right",
		  "onclick": null,
		  "showDuration": "400",
		  "hideDuration": "1000",
		  "timeOut": "3000",
		  "preventDuplicates": true,
		  "extendedTimeOut": "1000",
		  "showEasing": "swing",
		  "hideEasing": "linear",
		  "showMethod": "fadeIn",
		  "hideMethod": "fadeOut"
		}
//初始化fileinput控件（第一次初始化）   
$("#oemFileId").fileinput({
    language: 'zh', //设置语言
    uploadUrl: '', //上传的地址
    allowedFileExtensions : ['jpg', 'png','gif','doc','docx'],//接收的文件后缀
    showUpload: false, //是否显示上传按钮
    showCaption: true,//是否显示标题
    showPreview: false,
    browseClass: "btn btn-primary", //按钮样式             
    previewFileIcon: "<i class='glyphicon glyphicon-king'></i>", 
});
//初始化fileinput控件（第一次初始化）   
$("#outFileId").fileinput({
    language: 'zh', //设置语言
    uploadUrl: '', //上传的地址
    allowedFileExtensions : ['jpg', 'png','gif','doc','docx'],//接收的文件后缀
    showUpload: false, //是否显示上传按钮
    showCaption: true,//是否显示标题
    showPreview: false,
    browseClass: "btn btn-primary", //按钮样式             
    previewFileIcon: "<i class='glyphicon glyphicon-king'></i>", 
});
</script>
</html>